﻿using RearLivestock.Common.Domains.Common;
using RearLivestock.Common.Domains.Enum;
using System.ComponentModel.DataAnnotations;

namespace RearLivestock.Common.Domains.wbx
{
    /// <summary>
    /// 种猪配种
    /// </summary>
    public class PigsBreeding: BaseEntity
    {
        /// <summary>
        /// 配种ID
        /// </summary>
        [Key]
        public int PigsBreedingId { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        [StringLength(50)]
        public string Leader { get; set; }=string.Empty;
        /// <summary>
        /// 上一次配种的日期
        /// </summary>
        public DateTime LastBreedingDate { get; set; }
        /// <summary>
        /// 耳号
        /// </summary>
        public int BasicInforId { get; set; }
        /// <summary>
        /// 第一次配种使用的父亲耳号
        /// </summary>
        [StringLength(100)]
        public string FatherEarNumber { get; set; } = string.Empty;
        /// <summary>
        /// 配种方式ID
        /// </summary>
        public int BreedingmethodId { get; set; }
        /// <summary>
        /// 种母的发情类型
        /// </summary>
        public EstrustypeEnums Estrustype { get; set; }
        /// <summary>
        /// 配种评分
        /// </summary>
        public int Firstmatchrating { get; set; }
        /// <summary>
        /// 当前所在栋舍
        /// </summary>
        [StringLength(100)]
        public string Currentbuilding { get; set; } = string.Empty;

        /// <summary>
        /// 当前所在栏位
        /// </summary>
        [StringLength(100)]
        public string Currentfield { get; set; } = string.Empty;
        /// <summary>
        /// 转入栋舍
        /// </summary>
        public int Transferbuilding { get; set; }
        /// <summary>
        /// 转入栏位
        /// </summary>
        public int Transferfield { get; set; }
        /// <summary>
        /// 繁殖状态
        /// </summary>
        public ReproductivestatusEnums Reproductivestatus { get; set; }
        /// <summary>
        /// 事件日期
        /// </summary>
        public DateTime EventDate { get; set; }
        /// <summary>
        /// 单据号
        /// </summary>
        [StringLength(100)]
        public string DocumentNo { get; set; }=string.Empty;

        /// <summary>
        /// 流水号
        /// </summary>
        [StringLength(100)]
        public string SerialNo { get; set; }= string.Empty;

        /// <summary>
        /// 重量
        /// </summary>
        public decimal BreedingWeight { get; set; }


        /// <summary>
        /// 删除 1-未删除 2-已删除
        /// </summary>
        public int IsDeleted { get; set; }
    }
}
